﻿using AbpDemo.Menus.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AbpDemo.Menus
{
    public interface IMenuService : ICrudAppExtService<MenuDto,Guid,CreateUpdateMenuDto>
    {
        /// <summary>
        /// 获取路由
        /// </summary>
        /// <returns></returns>
        Task<ResultDto<List<RouteDto>>> GetRoute();
        /// <summary>
        /// 菜单节点显示
        /// </summary>
        /// <returns></returns>
        Task<ResultDto<List<TreeDto>>> GetTreeNodes(QueryDto dto);
        /// <summary>
        /// 切换隐藏
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ResultDto<bool>> SwitchHidden(MenuDto dto);
        /// <summary>
        /// 切换显示
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ResultDto<bool>> SwitchAffix(MenuDto dto);
    }
}
